<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableFilmAtts extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('film_atts', function (Blueprint $table) {
            $table->increments('aid');      //  自增ID
            $table->integer('fid')->unsigned();     //电影ID
            $table->integer('period');      //上映年代 如2015
            $table->string('uptime');         // 上传时间
            $table->string('pubtime');      //上映时间
            $table->boolean('is_pay');      //是否付费
            $table->boolean('is_hot');      //是否热门
            $table->boolean('is_new');      //是否最新
            $table->tinyinteger('is_rec');  //推荐程度
            $table->integer('score');       //总评分
            $table->integer('count_uid');   //评分人数
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('film_atts');
    }
}
